<template>
  <div id="app">
    <van-skeleton title :row="5" v-if="isShow" />
    <router-view v-else></router-view>
  </div>
</template>

<script setup>
import { ref, watch } from "vue";
import { useRoute, useRouter } from "vue-router";

const router = useRouter();
const route = useRoute();
let isShow = ref(true);

watch(
  () => route.name,
  () => {
    setInterval(() => {
      isShow.value = false;
    }, 100);
  }
);
</script>

<style lang="scss" scoped></style>
